package com.xuecheng.api.system.model;

import com.xuecheng.api.system.model.dto.DictionaryDTO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;

import java.util.List;

/**
 * @author wuyunyun
 * @data 2021/10/7 20:49
 */
@Api(tags = "数据字典Api")
public interface DictionaryControllerApi {

    @ApiOperation("查询数据字典全部数据")
    List<DictionaryDTO> queryAll();

    @ApiOperation("根据code查询数据字典信息")
    @ApiImplicitParam(name = "code",value = "数据字典代码" ,required = true,dataType = "string",paramType = "path")
    DictionaryDTO getByCode(String code);

}
